package dao;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * TbExam entity. @author MyEclipse Persistence Tools
 */

public class TbExam implements java.io.Serializable {

	// Fields

	private Integer examId;
	private TbPaper tbPaper;
	private Timestamp startTime;
	private Timestamp endTime;
	private Set tbStudentinexams = new HashSet(0);

	// Constructors

	/** default constructor */
	public TbExam() {
	}

	/** minimal constructor */
	public TbExam(TbPaper tbPaper, Timestamp startTime, Timestamp endTime) {
		this.tbPaper = tbPaper;
		this.startTime = startTime;
		this.endTime = endTime;
	}

	/** full constructor */
	public TbExam(TbPaper tbPaper, Timestamp startTime, Timestamp endTime,
			Set tbStudentinexams) {
		this.tbPaper = tbPaper;
		this.startTime = startTime;
		this.endTime = endTime;
		this.tbStudentinexams = tbStudentinexams;
	}

	// Property accessors

	public Integer getExamId() {
		return this.examId;
	}

	public void setExamId(Integer examId) {
		this.examId = examId;
	}

	public TbPaper getTbPaper() {
		return this.tbPaper;
	}

	public void setTbPaper(TbPaper tbPaper) {
		this.tbPaper = tbPaper;
	}

	public Timestamp getStartTime() {
		return this.startTime;
	}

	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}

	public Timestamp getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}

	public Set getTbStudentinexams() {
		return this.tbStudentinexams;
	}

	public void setTbStudentinexams(Set tbStudentinexams) {
		this.tbStudentinexams = tbStudentinexams;
	}

}